package com.example.demo.comm;

import lombok.Data;

@Data
public class ApiJsonResp<T> {
    private int code;
    private String message;
    private Object  data;
    public void IsOK() {
        this.code = 0;
        this.message = "ok";
    }

    public void IsOkData(T data){
        this.IsOK();
        this.data = data;
    }

    public void IsErr(String data){
        this.message = data;
    }
}
